//
//  BusEnterController.m
//  LiquorChain
//
//  Created by apple on 2019/1/5.
//  Copyright © 2019年 王冬. All rights reserved.
//

#import "BusEnterController.h"
#import "BueinessPhotoController.h"
@interface BusEnterController ()
@property (nonatomic,strong) UIButton *nextBtn;
@end

@implementation BusEnterController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title= @"商家入驻申请";
    UIView *backView =[[UIView alloc]init];
    [self.view addSubview:backView];
    backView.backgroundColor = [UIColor whiteColor];
    [backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(kNavBarHeight);
        make.left.right.mas_equalTo(0);
        make.height.mas_equalTo(SCREEN_HEIGHT - kNavBarHeight - kIPhoneXBottomHeight);
        

        
    }];
    UILabel *titleLabel =[[UILabel alloc]init];
    [backView addSubview:titleLabel];
    titleLabel.text = @"店铺类型";
    titleLabel.font =[UIFont systemFontOfSize:25];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.top.mas_equalTo(15);
        make.height.mas_equalTo(30);
    }];
    UILabel *infoLabel =[[UILabel alloc]init];
    [backView addSubview:infoLabel];
    infoLabel.text = @"快速定位 精细做事";
    infoLabel.font =[UIFont systemFontOfSize:12];
    [infoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(titleLabel.mas_bottom).with.offset(10);
        make.left.mas_equalTo(15);
        make.height.mas_equalTo(12);
    }];
    
    UILabel *phoneLabel =[[UILabel alloc]init];
    [backView addSubview:phoneLabel];
    phoneLabel.text = @"注册手机";
    phoneLabel.font =[UIFont systemFontOfSize:14];
    [phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.width.mas_equalTo(60);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(infoLabel.mas_bottom).with.offset(70);
    }];
    UITextField *phoneTextFiled =[[UITextField alloc]init];
    [backView addSubview:phoneTextFiled];
    phoneTextFiled.placeholder = @"获取手机号";
    phoneTextFiled.font =[UIFont systemFontOfSize:14];
    [phoneTextFiled mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(phoneLabel.mas_right).with.offset(30);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(infoLabel.mas_bottom).with.offset(70);
    }];
    
    
    UILabel *tuiphoneLabel =[[UILabel alloc]init];
    [backView addSubview:tuiphoneLabel];
    tuiphoneLabel.text = @"推荐人手机";
    tuiphoneLabel.font =[UIFont systemFontOfSize:14];
    [tuiphoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.width.mas_equalTo(80);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(phoneTextFiled.mas_bottom).with.offset(30);
    }];
    UITextField *tuiphoneTextFiled =[[UITextField alloc]init];
    [backView addSubview:tuiphoneTextFiled];
    tuiphoneTextFiled.placeholder = @"输入推荐人手机号";
    tuiphoneTextFiled.font =[UIFont systemFontOfSize:14];
    [tuiphoneTextFiled mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(tuiphoneLabel.mas_right).with.offset(16);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(phoneTextFiled.mas_bottom).with.offset(30);
    }];
    
    
    UILabel *shopLabel =[[UILabel alloc]init];
    [backView addSubview:shopLabel];
    shopLabel.text = @"店铺类型";
    shopLabel.font =[UIFont systemFontOfSize:14];
    [shopLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.width.mas_equalTo(60);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(tuiphoneTextFiled.mas_bottom).with.offset(30);
    }];
    UITextField *shopTextFiled =[[UITextField alloc]init];
    [backView addSubview:shopTextFiled];
    shopTextFiled.placeholder = @"请选择店铺类型";
    shopTextFiled.font =[UIFont systemFontOfSize:14];
    [shopTextFiled mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(shopLabel.mas_right).with.offset(30);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(tuiphoneTextFiled.mas_bottom).with.offset(30);
    }];
    
    UILabel *shopNameLabel =[[UILabel alloc]init];
    [backView addSubview:shopNameLabel];
    shopNameLabel.text = @"店铺名称";
    shopNameLabel.font =[UIFont systemFontOfSize:14];
    [shopNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.width.mas_equalTo(60);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(shopTextFiled.mas_bottom).with.offset(30);
    }];
    UITextField *shopNameTextFiled =[[UITextField alloc]init];
    [backView addSubview:shopNameTextFiled];
    shopNameTextFiled.placeholder = @"请选择店铺名称";
    shopNameTextFiled.font =[UIFont systemFontOfSize:14];
    [shopNameTextFiled mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(shopNameLabel.mas_right).with.offset(30);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(shopTextFiled.mas_bottom).with.offset(30);
    }];
    
    
    UILabel *styleLabel =[[UILabel alloc]init];
    [backView addSubview:styleLabel];
    styleLabel.text = @"店铺名称";
    styleLabel.font =[UIFont systemFontOfSize:14];
    [styleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.width.mas_equalTo(60);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(shopNameTextFiled.mas_bottom).with.offset(30);
    }];
    UITextField *styleTextFiled =[[UITextField alloc]init];
    [backView addSubview:styleTextFiled];
    styleTextFiled.placeholder = @"请选择店铺名称";
    styleTextFiled.font =[UIFont systemFontOfSize:14];
    [styleTextFiled mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(shopLabel.mas_right).with.offset(30);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(13);
        make.top.mas_equalTo(shopNameTextFiled.mas_bottom).with.offset(30);
    }];
    
    self.nextBtn =[UIButton buttonWithType:UIButtonTypeCustom];
    [backView addSubview:self.nextBtn];
    [self.nextBtn setTitle:@"下一步" forState:UIControlStateNormal];
    [self.nextBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    self.nextBtn.backgroundColor = CUSTOMCOLOR;
    self.nextBtn.layer.cornerRadius = 20;
    [self.nextBtn addTarget:self action:@selector(commitClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(-15);
        make.top.mas_equalTo(styleTextFiled.mas_bottom).with.offset(70);
        make.height.mas_equalTo(40);
    }];
    
    
    
    
    
    
    // Do any additional setup after loading the view.
}
-(void)commitClick:(UIButton *)sender{
    NSLog(@"123");
    BueinessPhotoController *buinesPhoVC =[[BueinessPhotoController alloc]init];
    [self.navigationController pushViewController:buinesPhoVC animated:YES];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
